package top.lywivan.mm.dao;


import top.lywivan.mm.pojo.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseDao {
    List<Course> findListByPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize, @Param("course") Course course);

    Long findTotalCount(Course course);

    void addCourse(Course course);

    void updateCourse(Course course);

    void deleteCourseById(Integer id);

    List<Course> findListAllCourse();
}
